<?php
namespace app\mobile\model;

/**
 * Class Limited
 * @package app\mobile\model     限时抢购表
 */
class Limited extends BaseModel
{
    /*
     * 限时购和商品多对一
     */
    public function shopGoods()
    {
        return $this->belongsTo('ShopGoods','goods_id','id');
    }
    /*
     * 限购商品和限购分类多对一
     */
    public function limitedType()
    {
        return $this->belongsTo('LimitedType','parenTid','id')->field('id,end_time');
    }
}